package com.boot.web;

import com.boot.utils.MailUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Chunsheng.Zhang
 * @date 2021/1/11 18:18
 * @description : TODO
 */
@RestController
public class TestController {

    @Autowired
    private MailUtil mailUtil;



    @RequestMapping("/test1")
    public void test1(){
        mailUtil.send();
    }



    @RequestMapping("/test2")
    public void test2(){
        mailUtil.sendComplexMail();
    }


}
